package com.wx.service.impl;

import com.wx.dao.BillDao;
import com.wx.dao.impl.BillDaoImpl;
import com.wx.domain.Bill;
import com.wx.service.BillService;

import java.util.List;

public class BillServiceImpl implements BillService {
    BillDao billDao=new BillDaoImpl();
    @Override
    public List<Bill> findBillsByPatientId(String patientId) {
        return billDao.findBillsByPatientId(patientId);
    }

    @Override
    public List<Bill> findBillsByDoctorId(String doctorId) {
        return billDao.findBillsByDoctorId(doctorId);
    }

    @Override
    public int addBill(Bill bill) {
        return billDao.addBill(bill);
    }

}
